//
//  KEAlphabet-onClick.swift
//  KoalaEn
//
//  Created by Wade on 2024/9/10.
//

import Foundation
extension KEAlphabet{
    @objc func aBtnClick(){
        let audioFileName = (self.content?.lowercased())!+".mp3"
        guard let audioPath = Bundle.main.path(forResource:audioFileName , ofType: nil) else {
            print("aBtnClick 找不到音频文件:"+audioFileName)
           return
        }
        let audioURL = URL.init(fileURLWithPath: audioPath)
        self.audioPlayer?.playLocalAudio(audioURL)
    }
    
    @objc func recordBtnClick(){
        
    }
    @objc func startGameBtnClick(){
        
    }
    
}
